package com.xiaoxi.xiojcodesandbox.security;

import cn.hutool.http.HttpUtil;

/**
 *  测试安全管理器限制类
 */
public class TestSecurityManager {
    public static void main(String[] args) {
        System.setSecurityManager(new MySecurityManager());
//        FileUtil.writeString("123", "123", StandardCharsets.UTF_8);
//        List<String> list = FileUtil.readLines("D:\\projectDev\\oj\\dev\\xioj-code-sandbox\\src\\main\\resources\\muma.bat", StandardCharsets.UTF_8);
//        System.out.println(list);
        String s = HttpUtil.get("www.baidu.com");
        System.out.println(s);
    }
}
